package com.study.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.study.dto.biz.ShortLinkStatsRecordDTO;
import com.study.dto.req.ShortLinkGroupStatsAccessRecordReqDTO;
import com.study.dto.req.ShortLinkGroupStatsReqDTO;
import com.study.dto.req.ShortLinkStatsAccessRecordReqDTO;
import com.study.dto.req.ShortLinkStatsReqDTO;
import com.study.dto.resp.ShortLinkStatsAccessRecordRespDTO;
import com.study.dto.resp.ShortLinkStatsRespDTO;

/**
 * @author canace
 * @version 1.0
 * @description 短链接监控服务类
 * @date 2024/2/4 16:36
 */
public interface ShortLinkStatsService {
    ShortLinkStatsRespDTO shortLinkStats(ShortLinkStatsReqDTO reqDTO);

    void insertShortLinkStats(String fullShortUrl, String gid, ShortLinkStatsRecordDTO statsRecord);

    ShortLinkStatsRespDTO groupShortLinkStats(ShortLinkGroupStatsReqDTO reqDTO);

    IPage<ShortLinkStatsAccessRecordRespDTO> shortLinkStatsAccessRecord(ShortLinkStatsAccessRecordReqDTO requestParam);

    IPage<ShortLinkStatsAccessRecordRespDTO> groupShortLinkStatsAccessRecord(ShortLinkGroupStatsAccessRecordReqDTO requestParam);
}
